package org.progin.cloudfolder.msg;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class LoginPayload implements Payload {
	
	public String username, password;

	@Override
	public byte getId() {
		return Payload.LOGIN;
	}

	@Override
	public void write(DataOutputStream os) throws IOException {
		os.writeUTF(username);
		os.writeUTF(password);
	}

	@Override
	public void read(DataInputStream is) throws IOException {
		username = is.readUTF();
		password = is.readUTF();
	}

}
